package com.woniuxy.model;

import java.io.Serializable;
import java.util.Date;

public class Good implements Serializable {
    private Integer id;
    private String name;
    private String goodsno;
    private String author;
    private String publisher;
    //@JSONField(format = "yyyy-MM-dd")
    private Date pubtime;
    private String description;
    private String image;
    private Integer stock;
    private Double marketprice;
    private Double salesprice;
    private Integer score = 0;
    private Integer remarknums = 0;
    private Date uptime;
    private Integer salenums;
    private String newset;
    private String hot;
    private String status;
    //外键
    private Category category;

    @Override
    public String toString() {
        return "Good{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", goodsno='" + goodsno + '\'' +
                ", author='" + author + '\'' +
                ", publisher='" + publisher + '\'' +
                ", pubtime=" + pubtime +
                ", description='" + description + '\'' +
                ", image='" + image + '\'' +
                ", stock=" + stock +
                ", marketprice=" + marketprice +
                ", salesprice=" + salesprice +
                ", score=" + score +
                ", remarknums=" + remarknums +
                ", uptime=" + uptime +
                ", salenums=" + salenums +
                ", newset='" + newset + '\'' +
                ", hot='" + hot + '\'' +
                ", status='" + status + '\'' +
                ", category=" + category +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGoodsno() {
        return goodsno;
    }

    public void setGoodsno(String goodsno) {
        this.goodsno = goodsno;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public Date getPubtime() {
        return pubtime;
    }

    public void setPubtime(Date pubtime) {
        this.pubtime = pubtime;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public Double getMarketprice() {
        return marketprice;
    }

    public void setMarketprice(Double marketprice) {
        this.marketprice = marketprice;
    }

    public Double getSalesprice() {
        return salesprice;
    }

    public void setSalesprice(Double salesprice) {
        this.salesprice = salesprice;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public Integer getRemarknums() {
        return remarknums;
    }

    public void setRemarknums(Integer remarknums) {
        this.remarknums = remarknums;
    }

    public Date getUptime() {
        return uptime;
    }

    public void setUptime(Date uptime) {
        this.uptime = uptime;
    }

    public Integer getSalenums() {
        return salenums;
    }

    public void setSalenums(Integer salenums) {
        this.salenums = salenums;
    }

    public String getNewset() {
        return newset;
    }

    public void setNewset(String newset) {
        this.newset = newset;
    }

    public String getHot() {
        return hot;
    }

    public void setHot(String hot) {
        this.hot = hot;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }



}
